// Learn TypeScript:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html

import Character from "../../BASE/Character";
import GeZiManager from "../../Manager/GeZiManager";
import MessageCenter from "../../Message/MessageCenter";
import DXX from "./DXX";

const {ccclass, property} = cc._decorator;

@ccclass
export default class D13 extends DXX {

    target:Character=null;
    TheNumber:string ='D13';
    Cname:string="鸡冠"
    J:number=0

    start () {
        this.target=this.node.getComponent(Character);
        this.target.t3.push(this)
    }
 
T3(): void {
   // let A2 = [GeZiManager.P1,GeZiManager.P2,GeZiManager.P3,GeZiManager.P4,GeZiManager.P5,GeZiManager.P6]
    //for(let a of A2){if (GeZiManager.line(this.target.ZB,8,this.target.faceTo,GeZiManager.BanMove).includes(a.ZB)&&a.color!=this.target.color ){

       // MessageCenter.MakeSHMessage("AM",[this.target.ZB],1,this.target.Pturn,"TNS")

   // }


//}

this.target.sh-=this.J
if (this.J!=0) {
    this.J=0
}
}

remove(): void {
  GeZiManager.shanchu(this.target.t3,this)
 
}








TNN(n:number): void {
this.target.sh+=n
this.J=n
}
}


